package com.bridgeintelligent.tag.bulkload.service.core.refresh;

import com.bridgeintelligent.tag.bulkload.service.core.cache.InitCache;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author JackCheung
 * @date 2020/8/24 7:15 PM.
 * description:
 */
@AllArgsConstructor
@Slf4j
@Component
public class RefreshCache {

    private InitCache initCache;

    @Scheduled(cron = "0 0 0 * * ? ")
    public void requestDepartment() {
        initCache.run();
    }
}
